<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: "App",
  data(){
    return{
      pc_signal:false
    }
  },
  methods: {
    _isMobile() {
      let flag = navigator.userAgent.match(
        /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
      );
      return flag;
    },
  },
  created() {
    // 判断电脑还是手机
    if (this._isMobile()) {
      this.$router.push("/mobile");
    } else {
      this.$router.push("/pc");
    }
    
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  position: relative;
  /* background-color:rgb(2, 27, 48); */
  background: url("http://cdn.hustzjc.top/background2.png") no-repeat center 0px;
  background-size: cover;
  background-attachment: fixed;
  background-position: center 0;
}
</style>